package com.lrj.mysecurity;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@SpringBootApplication
//maxInactiveIntervalInSeconds设置redis过期时间（单位：秒）
@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 3600 * 6)
public class MysecurityApplication {

    public static void main(String[] args) {
        SpringApplication.run(MysecurityApplication.class, args);
    }

}
